package pta.MOOC.ch02.ex03;

import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int x1 = scanner.nextInt();
        int x2 = scanner.nextInt();
        int x3 = scanner.nextInt();
        double b = scanner.nextDouble();
        System.out.printf("%d %o %x\n", a, a, a);
        System.out.printf("%6.2f\n", b);
        System.out.printf("%5d %5d %5d\n", x1, x2, x3);
        System.out.printf("%5d %5d %5d\n", x2, x3, x1);
        System.out.printf("%5d %5d %5d\n", x3, x1, x2);
        scanner.close();
    }
}
